import request from '@/utils/request'

// 查询实时位置列表
export function listLabel(query) {
  return request({
    url: '/safety/label/list',
    method: 'get',
    params: query
  })
}

// 查询实时位置详细
export function getLabel(deviceId) {
  return request({
    url: '/safety/label/' + deviceId,
    method: 'get'
  })
}

// 新增实时位置
export function addLabel(data) {
  return request({
    url: '/safety/label',
    method: 'post',
    data: data
  })
}

// 修改实时位置
export function updateLabel(data) {
  return request({
    url: '/safety/label',
    method: 'put',
    data: data
  })
}

// 删除实时位置
export function delLabel(deviceId) {
  return request({
    url: '/safety/label/' + deviceId,
    method: 'delete'
  })
}

